package com.floreantpos.model;

import com.floreantpos.model.base.BaseCouponAndDiscount;

public class CouponAndDiscount extends BaseCouponAndDiscount {

  private static final long serialVersionUID = 1L;

  /*[CONSTRUCTOR MARKER BEGIN]*/
  public CouponAndDiscount() {
    super();
  }

  /**
   * Constructor for primary key
   */
  public CouponAndDiscount(java.lang.Integer id) {
    super(id);
  }

  /*[CONSTRUCTOR MARKER END]*/
  public final static int FREE_AMOUNT = 0;
  public final static int FIXED_PER_CATEGORY = 1;
  public final static int FIXED_PER_ITEM = 2;
  public final static int FIXED_PER_ORDER = 3;
  public final static int PERCENTAGE_PER_CATEGORY = 4;
  public final static int PERCENTAGE_PER_ITEM = 5;
  public final static int PERCENTAGE_PER_ORDER = 6;

  public final static String[] COUPON_TYPE_NAMES = {"Valor Livre", "Fixo por Categoria",
    "Fixo por Item", "Fixo por Pedido", "Porcentagem por Categoria",
    "Porcentagem por Item", "Porcentagem por Pedido"};

  @Override
  public String toString() {
    return COUPON_TYPE_NAMES[getType()];
  }

}
